<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>后台登录</title>
	<link href="/Public/css/default.css" rel="stylesheet" type="text/css" />

	<link rel="stylesheet" type="text/css" href="/Public/js/themes/default/easyui.css" />
	<link rel="stylesheet" type="text/css" href="/Public/js/themes/icon.css" />
	<script type="text/javascript" src="/Public/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="/Public/js/jquery.easyui.min.js"></script>
	<script type="text/javascript" src='/Public/js/XiuCai.index.js'> </script>
</head>
<!--<body>-->
	<!--<div class="login">-->
		<!--<form class="login_in">-->
			<!--<div>-->
				<!--<label for="">账号</label>-->
				<!--<input  id="name" type="text" placeholder="请输入账号">-->
			<!--</div>-->
			<!--<div>-->
				<!--<label for="">密码</label>-->
				<!--<input id="pwd" type="password" placeholder="请输入密码">-->
			<!--</div>-->
			<!--<input class="login_inp" type="button" value="登录" onclick="submin()">-->
		<!--</form>-->
	<!--</div>-->
<!--</body>-->
<body>
<div id="loginWin" class="easyui-window" title="登录" style="width:350px;height:188px;padding:5px;"
	 minimizable="false" maximizable="false" resizable="false" collapsible="false">
	<div class="easyui-layout" fit="true">
		<div region="center" border="false" style="padding:5px;background:#fff;border:1px solid #ccc;">
			<form id="loginForm" method="post">
				<div style="padding:5px 0;">
					<label for="login">帐号:</label>
					<input id="name" type="text" name="login" style="width:260px;" />
				</div>
				<div style="padding:5px 0;">
					<label for="password">密码:</label>
					<input id="pwd" type="password" name="password" style="width:260px;" />
				</div>
				<div style="padding:5px 0;text-align: center;color: red;" id="showMsg"></div>
			</form>
		</div>
		<div region="south" border="false" style="text-align:right;padding:5px 0;">
			<a class="easyui-linkbutton" iconcls="icon-ok" href="javascript:void(0)" onclick="login()">登录</a>
		</div>
	</div>
</div>
</body>
<script type="text/javascript" src="http://ip.chinaz.com/getip.aspx"></script>
<script>
	/**
	 * dl
	 */
	function  login(){
        var name=$("#name").val();
		var pwd=$("#pwd").val();
        if(name=="" && pwd==""){
			alert("非法操作");
			return
		}
		$.ajax({
			url:'index.php?m=Admin&c=index&a=index',
			type:'post',
			data:{
				name:name,
				pwd:pwd
			},
			async : false, //默认为true 异步
			error:function(){
				alert('发生异常！请联系狮友汇客服！');
			},
			success:function(data){
				window.location.href="index.php?m=Admin&c=index&a=index";
			}
		});

	}

</script>
</html>